package io.hots.feign;

import io.hots.util.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author yueshibin@cetcbigdata.com
 * @date 2022/9/6 4:07 下午
 */

@FeignClient(name = "hots-user-service", contextId="user-service-feign")
public interface UserFeignService {

    /**
     * 查询用户
     * @param
     * @return
     */
    @GetMapping("/api/user/v1/query_by_id")
    ResultData queryUserById(@RequestParam("user_id") String userId);

    /**
     * 查询场所
     * @param
     * @return
     */
    @GetMapping("/api/user/v1/query_venue_by_id")
    ResultData queryVenueById(@RequestParam("venue_id") String venueId);


}
